package com.wkbb.basic.mapper;

import com.github.pagehelper.Page;
import com.wkbb.basic.model.DeviceInfo;
import com.wkbb.basic.vo.DeviceConfigVo;
import com.wkbb.common.base.BaseMapper;
import com.wkbb.common.dto.basic.DeviceInfoDto;

import java.util.List;
import java.util.Map;

public interface DeviceInfoMapper extends BaseMapper<DeviceInfo> {

    DeviceInfoDto getDtoByParams(Map<String, Object> params);

    Page<DeviceInfoDto> getDtoListByParams(Map<String, Object> params);

    DeviceConfigVo getConfigByDeviceCode(String deviceCode);

    String getDeviceCodeListByOrg(Long orgId);

    List<DeviceInfoDto> getDeviceInfoListByParams(Map<String, Object> params);

    void updateDeviceConfigBatch(Map<String, Object> params);

    List<DeviceInfo> getListByDeviceTypeId(Map<String, Object> params);
}